package cease.command.message;

import java.util.Collection;

import cease.butter.MessageExecutor;
import cease.command.NoOptionCommand;
import cease.console.PrintHelper;
import cease.urs.Session;
import cease.vo.Message;

/**
 * @author dhf
 */
public class ShowMessagesCommand extends NoOptionCommand {

    public void run(Session session, String[] args) throws Exception {
        Collection<Message> messages = MessageExecutor.getInstance().showMessages(
                session, null, null);
        PrintHelper.printMessage(messages);
    }

    public String getCmdDesc() {
        return "show inbox messages";
    }

}
